using ObjFileLoader.Common;
using ObjFileLoader.TypeParsers.Interfaces;

namespace ObjFileLoader.TypeParsers
{
	public abstract class TypeParserBase : ITypeParser
	{
		protected abstract string Keyword
		{
			get;
		}

		public bool CanParse(string keyword)
		{
			return keyword.EqualsOrdinalIgnoreCase(Keyword);
		}

		public abstract void Parse(string line);
	}
}
